//定义页面按钮常量
var BUTTON_OK = "ok"; 

var BUTTON_CANCEL = "cancel";

var BUTTON_YES = "yes";

var BUTTON_NO = "no";

/**定义特殊键代码*/
var SPECIALKEY_CODE_ENTER = 13;

var SPECIALKEY_CODE_TAB = 9;

var SPECIALKEY_CODE_ESC = 27;

/**定义页面分页参数*/
var PAGING_START_INDEX = 0;

var PAGING_PAGE_SIZE = 15;
/**一页最大数据量*/
var MAX_PAGING_PAGE_SIZE = 999;

var POPPU_PAGING_PAGE_SIZE = 10;

/**定义默认Grid尺寸*/
var GRID_WIDTH = 1000;

var GRID_HEIGHT = document.documentElement.clientHeight;

/**定义默认根节点代码*/
var ROOT_PARENTCODE = 0;

/**定义页面日期格式*/
var DEFAULT_DATE_FORMAT = 'Y-m-d H:i:s';

var SHORT_DATE_FORMAT = 'Y-m-d';

var SHORT_DATE_MON = 'Y-m';
/**上月时间*/
var LAST_DATE = new Date(new Date().getTime() - (new Date().getDaysInMonth()+1)*24*60*60*1000);
/**当前时间*/
var CURR_DATE = new Date();
/**今年第一天日期*/
var FIRST_DAY_OF_YEAR = new Date(new Date().getTime() - (new Date().getDayOfYear())*24*60*60*1000);
/**获取今年最大天数（平年还是闰年）*/
var MAX_DAY_OF_YEAR = new Date().getYear()%100==0?(new Date().getYear()%400==0?366:365):(new Date().getYear()%4==0?(new Date().getYear()%100==0?365:366):365);
/**今年最后一天日期*/
var LAST_DAY_OF_YEAR = new Date(new Date().getTime() + (MAX_DAY_OF_YEAR - new Date().getDayOfYear() - 1)*24*60*60*1000);

var SAFE_IMPORT_TYPE = /\.([dD][oO][cC]||[dD][oO][cC][xX]||[xX][lL][sS]||[xX][lL][sS][xX]||[pP][dD][fF]||[pP][pP][tT]||[rR][aA][rR]||[zZ][iI][pP]){1}$/;

var CHECK_MANAGER = /(200100){1}\d+$/;

var ALERT_TEXT = '可以上传的文件：excel、word、pdf、ppt';
